using ConsoleApp2.input._1106.util;
using Microsoft.VisualBasic.CompilerServices;

namespace ConsoleApp2.input._1106.service;

public class UserServiceImpl: IUserService
{
    User user = new User();
    public bool Login(string username, int password)
    {
        Console.WriteLine("请输入用户名：");
        user.Username = Console.ReadLine();
        Console.WriteLine("请输入密码：");
        user.Password = Convert.ToInt32(Console.ReadLine());
        CheckBoxUtil.Checker(user);
        return false;
    }

    public bool regester(string username, int password)
    {
        Console.WriteLine("请输入用户名：");
        user.Username = Console.ReadLine();
        Console.WriteLine("请输入密码：");
        user.Password = Convert.ToInt32(Console.ReadLine());
        CheckBoxUtil.Box(user);
        return false;
    }
}